package 晚自习练习;

public class 最小值 {
    public static void main(String[] args) {

        double[] arr  = {12.9,53.54,75.0,99.1,3.14};

        double min = arr[0];

        for (int i = 0; i < arr.length; i++) {

            if (arr[i]<min){
                min = arr[i];
            }
        }
        System.out.println("这组数据中的最小值是"+min);
    }
}
